/**
 * User: alesj
 * Date: 2004.8.11
 * Time: 15:09:32
 */

package com.generalynx.ecos.data;

import java.io.Serializable;

import com.generalynx.common.utils.Tools;
import com.generalynx.common.utils.EmptyValueFormat;

public class Address implements Serializable {

    private static final long serialVersionUID = 1L;

    private String m_street;
    private String m_city;
    private String m_post;
    private String m_country;

    public String toString() {
        Object[] array = new Object[]{m_street, m_post, m_city, m_country};
        return Tools.implode(array, " ", false, null, null, EmptyValueFormat.INSTANCE).trim();
    }

    /**
     * @hibernate.property
     */
    public String getStreet() {
        return m_street;
    }

    public void setStreet(String street) {
        m_street = street;
    }

    /**
     * @hibernate.property
     */
    public String getCity() {
        return m_city;
    }

    public void setCity(String city) {
        m_city = city;
    }

    /**
     * @hibernate.property
     */
    public String getPost() {
        return m_post;
    }

    public void setPost(String post) {
        m_post = post;
    }

    /**
     * @hibernate.property
     */
    public String getCountry() {
        return m_country;
    }

    public void setCountry(String country) {
        m_country = country;
    }
}
